Optimal. Leaf size=50 \[ \frac {\cot (e+f x) \sqrt {b \tan ^4(e+f x)}}{f}-x \cot ^2(e+f x) \sqrt {b \tan ^4(e+f x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3739, 3554, 8}
\begin {gather*} \frac {\cot (e+f x) \sqrt {b \tan ^4(e+f x)}}{f}-x \cot ^2(e+f x) \sqrt {b \tan ^4(e+f x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3554
Rule 3739
Rubi steps
\begin {align*} \int \sqrt {b \tan ^4(e+f x)} \, dx &=\left (\cot ^2(e+f x) \sqrt {b \tan ^4(e+f x)}\right ) \int \tan ^2(e+f x) \, dx\\ &=\frac {\cot (e+f x) \sqrt {b \tan ^4(e+f x)}}{f}-\left (\cot ^2(e+f x) \sqrt {b \tan ^4(e+f x)}\right ) \int 1 \, dx\\ &=\frac {\cot (e+f x) \sqrt {b \tan ^4(e+f x)}}{f}-x \cot ^2(e+f x) \sqrt {b \tan ^4(e+f x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 41, normalized size = 0.82 \begin {gather*} -\frac {\cot (e+f x) (-1+\text {ArcTan}(\tan (e+f x)) \cot (e+f x)) \sqrt {b \tan ^4(e+f x)}}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 42, normalized size = 0.84
method | result | size |
derivativedivides | \(-\frac {\sqrt {b \left (\tan ^{4}\left (f x +e \right )\right )}\, \left (-\tan \left (f x +e \right )+\arctan \left (\tan \left (f x +e \right )\right )\right )}{f \tan \left (f x +e \right )^{2}}\) | \(42\) |
default | \(-\frac {\sqrt {b \left (\tan ^{4}\left (f x +e \right )\right )}\, \left (-\tan \left (f x +e \right )+\arctan \left (\tan \left (f x +e \right )\right )\right )}{f \tan \left (f x +e \right )^{2}}\) | \(42\) |
risch | \(\frac {\sqrt {\frac {b \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{4}}{\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{4}}}\, \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} x}{\left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{2}}-\frac {2 i \sqrt {\frac {b \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{4}}{\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{4}}}\, \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{\left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{2} f}\) | \(120\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 28, normalized size = 0.56 \begin {gather*} -\frac {{\left (f x + e\right )} \sqrt {b} - \sqrt {b} \tan \left (f x + e\right )}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.96, size = 40, normalized size = 0.80 \begin {gather*} -\frac {\sqrt {b \tan \left (f x + e\right )^{4}} {\left (f x - \tan \left (f x + e\right )\right )}}{f \tan \left (f x + e\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {b \tan ^{4}{\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 250 vs.
\(2 (50) = 100\).
time = 0.57, size = 250, normalized size = 5.00 \begin {gather*} \frac {{\left (\pi - 4 \, f x \tan \left (f x\right ) \tan \left (e\right ) - \pi \mathrm {sgn}\left (2 \, \tan \left (f x\right )^{2} \tan \left (e\right ) + 2 \, \tan \left (f x\right ) \tan \left (e\right )^{2} - 2 \, \tan \left (f x\right ) - 2 \, \tan \left (e\right )\right ) \tan \left (f x\right ) \tan \left (e\right ) - \pi \tan \left (f x\right ) \tan \left (e\right ) + 2 \, \arctan \left (\frac {\tan \left (f x\right ) \tan \left (e\right ) - 1}{\tan \left (f x\right ) + \tan \left (e\right )}\right ) \tan \left (f x\right ) \tan \left (e\right ) + 2 \, \arctan \left (\frac {\tan \left (f x\right ) + \tan \left (e\right )}{\tan \left (f x\right ) \tan \left (e\right ) - 1}\right ) \tan \left (f x\right ) \tan \left (e\right ) + 4 \, f x + \pi \mathrm {sgn}\left (2 \, \tan \left (f x\right )^{2} \tan \left (e\right ) + 2 \, \tan \left (f x\right ) \tan \left (e\right )^{2} - 2 \, \tan \left (f x\right ) - 2 \, \tan \left (e\right )\right ) - 2 \, \arctan \left (\frac {\tan \left (f x\right ) \tan \left (e\right ) - 1}{\tan \left (f x\right ) + \tan \left (e\right )}\right ) - 2 \, \arctan \left (\frac {\tan \left (f x\right ) + \tan \left (e\right )}{\tan \left (f x\right ) \tan \left (e\right ) - 1}\right ) - 4 \, \tan \left (f x\right ) - 4 \, \tan \left (e\right )\right )} \sqrt {b}}{4 \, {\left (f \tan \left (f x\right ) \tan \left (e\right ) - f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________